var App = require('app');

App.PhoneSettingsView = Em.View.extend({
    templateName: 'templates/field/phone/settings',
    
    didInsertElement: function() {
    	var me = this;
    	$("#phoneType").on({
    		change: function() {
    			var val = $(this).children('option:selected').val();
    			var vo = me.get('context');
    			vo.set('format', val);
    			PhoneUtil.showOrNot(vo.get("uid"), val);
    			return false;
    		}
    	});
    },

});